package com.mask.demo.controller;

import com.mask.demo.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName UserController
 * Create by hx
 * Date 2021/9/15 7:14 下午
 */

public class UserController {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext app =
                new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = (UserService) app.getBean("userService");
        userService.hello();
        System.out.println("userController say Hello Spring!");
    }
}
